<?php
function getIeVersion($user_agent)
{
	$p = stripos($_SERVER['HTTP_USER_AGENT'],'MSIE');
	$ie_version = substr($_SERVER['HTTP_USER_AGENT'],$p+5,1);
	return $ie_version;
}
if(stripos($_SERVER['HTTP_USER_AGENT'],'MSIE')!=false&&getIeVersion($_SERVER['HTTP_USER_AGENT'])<9)
{
	header('Content-Type:text/html');
	include('./tpl/index.html');
}
else
{
	header('Content-Type:application/xhtml+xml');
	include('./tpl/index.xhtml');
}
?>
